<style>
.btnchoiced {
	padding: 2pt 2pt 2pt 2pt;
	border: 1px solid Lime;
	background-color: Green;
	color: white;
}
</style>
<div id="divRatePanel"></div>
{menuList}
<br>
<span id="hktime"></span>，
<span id="countdownstr"></span>



<table cellSpacing="1" cellPadding="3" width="550" border="0" bgcolor="#6A99A6">
<tr bgcolor="#C0D6EB">
  <td width="20%" align="center">二尾</td>
  <td width="20%" align="center">三尾</td>
  <td width="20%" align="center">四尾</td>
  <td width="20%" align="center">五尾</td>
</tr>
<tr>
  <td align="center" bgcolor="#e7ebef" height="28" width="22%">
  {r36_21}</td>
  <td align="center" bgcolor="#e7ebef" height="28" width="22%">
  {r36_31}</td>
  <td align="center" bgcolor="#e7ebef" height="28" width="22%">
  {r36_41}</td>
  <td align="center" bgcolor="#e7ebef" height="28" width="22%">
  {r36_51}</td>
</tr>
<tr>
  <td align="center" bgcolor="#FCFCD8"><a href="op.php?op=agent&fp=betlist1&dt1={dt}&dt2={dt}&bettype=36&page=-1&order=2&numbers=21">{money21}</a></td>
  <td align="center" bgcolor="#FCFCD8"><a href="op.php?op=agent&fp=betlist1&dt1={dt}&dt2={dt}&bettype=36&page=-1&order=2&numbers=31">{money31}</a></td>
  <td align="center" bgcolor="#FCFCD8"><a href="op.php?op=agent&fp=betlist1&dt1={dt}&dt2={dt}&bettype=36&page=-1&order=2&numbers=41">{money41}</a></td>
  <td align="center" bgcolor="#FCFCD8"><a href="op.php?op=agent&fp=betlist1&dt1={dt}&dt2={dt}&bettype=36&page=-1&order=2&numbers=51">{money51}</a></td>
</tr>
<tr valign="top" align="center">
  <td bgcolor="#FFFFFF">
    <table border="0" width="92%" cellspacing="0" cellpadding="0">{list21}</table>
  </td>
  <td bgcolor="#FFFFFF">
    <table border="0" width="92%" cellspacing="0" cellpadding="0">{list31}</table>
  </td>
  <td bgcolor="#FFFFFF">
    <table border="0" width="92%" cellspacing="0" cellpadding="0">{list41}</table>
  </td>
  <td bgcolor="#FFFFFF">
    <table border="0" width="92%" cellspacing="0" cellpadding="0">{list51}</table>
  </td>
</tr>
</table>
<p>
<input type=button value="重新整理" onclick='My_Reload()'>
</p>


<script>
var now = new Date(1000 * {phptime});
var _id = {lotto_id};
nowdate();
function nowdate()
{
    document.all.hktime.innerHTML = "香港时间：<b>"+now.getDate()+"日"+d2(now.getHours())+":"+d2(now.getMinutes())+":"+d2(now.getSeconds()+"</b>");
    now.setTime(now.getTime() + 1000);
    setTimeout("nowdate()",1000);
}

var timestap = {timestap};
function countdown()
{
    if (timestap >= 0) {
        timediff = timestap;
        days = Math.floor(timediff / (60 * 60 * 24)); 
    	timediff -= days * (60 * 60 * 24);
    	hours = Math.floor(timediff / (60 * 60));
    	timediff -= hours * (60 * 60);	
    	mins = Math.floor(timediff / (60));
    	timediff -= mins * (60);	
    	secs = Math.floor(timediff);
        
        str = "距离截止下注时间还有 ";
        if (days > 0 ) str += "<b>" + days + "</b> 天 ";
        if (hours > 0) str += "<b>" + hours + "</b> 小时 ";
        if (mins > 0) str += "<b>" + mins + "</b> 分钟 ";
        str += "<b>" + secs + "</b> 秒 ";
        countdownstr.innerHTML =  str;
        setTimeout("countdown()",1000)
        timestap-=1;
        if (timestap==0) {
            //location.reload();
			My_Reload();
        }
    } else {
        countdownstr.innerHTML =  "<font color=red><b>已经截止下注！</b></font>";
    }
}
countdown();

function My_Reload()
{
	location.href = "op.php?op=agent&fp={fp}&lotto_id="+_id+"&split={split_id}&disk={disk_id}&select={selectid}&count=" + (new Date()).getTime();
}

</script>